<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>问卷管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/footable/footable.core.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="css/page.css"/>

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/footable/footable.all.min.js"></script>

    <!-- 分页js -->
    <script type="text/javascript" src="js/jquery.page.js"></script>
    <script type="text/javascript" src="js/core.js"></script>
    <!-- 自定义js -->
    
     <script src="js/querstion_list.js"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
        });

    </script>
    <script src="js/core.js"></script>
</head>

<body class="gray-bg">

<!-- Modal -->
<div class="modal fade" id="publishModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title" id="shipLabel">问卷发布</h4>
            </div>
            <form class="form-horizontal" name="form" novalidate="" style="">
                <div class="modal-body">
                    <div style="padding: 10px 0px;">
                        <div class="ng-scope" style="">
                            <div class="form-group"><label class="col-sm-2 control-label">标题:</label>
                                <div class="col-sm-8 ng-binding" style="line-height: 30px;">
                                    <span id="modalTitle"></span>
                                </div>
                            </div>
                            <div class="form-group"><label class="col-sm-2 control-label">选择性别:</label>
                                <div class="col-sm-8">
                                    <div class="radio inline"><input type="radio" id="radio-3" name="sexRadio"
                                                                     class="sexRadio"
                                                                     deliveryInfo.type value="" checked>
                                        <label for="radio-2">全部</label></div>
                                    <div class="radio inline"><input type="radio"
                                                                     id="radio-1"
                                                                     class="sexRadio"
                                                                     name="sexRadio"
                                                                     value="男" > <label
                                            for="radio-1">男</label></div>
                                    <div class="radio inline"><input type="radio" id="radio-2" name="sexRadio"
                                                                     class="sexRadio"
                                                                     deliveryInfo.type value="女">
                                        <label for="radio-2">女</label></div>
                                </div>
                            </div>
                            <div class="form-group ng-scope"><label
                                    class="col-sm-2 control-label">选择会员类型:</label>
                                <div class="col-sm-8">
                                    <div>
                                        <select id="modalMemberType" name="" class="form-control"
                                                style="width: 40%;">
                                            <option value="">全部</option>
                                            <option value="1">体验会员</option>
                                            <option value="2">彩虹会员</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <!-- ngIf: deliveryInfo.type == 0 -->
                            <div class="form-group ng-scope" ng-if="deliveryInfo.type == 0"><label
                                    class="col-sm-2 control-label">最小年龄:</label>
                                <div class="col-sm-2"><input id="modalMinAge" style="width: 200px;" type="number"
                                                             class="form-control input-sm">
                                </div>
                            </div>
                            <div class="form-group ng-scope" ng-if="deliveryInfo.type == 0"><label
                                    class="col-sm-2 control-label">最大年龄:</label>
                                <div class="col-sm-2"><input id="modalMaxAge" style="width: 200px;" type="number"
                                                             class="form-control input-sm">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" onclick="publish()" data-dismiss="modal" class="btn btn-primary">确定</button>
                    <button type="button" onclick="window.location.reload()" class="btn btn-secondary"
                            data-dismiss="modal">取消
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>问卷列表</h5>&nbsp;&nbsp;&nbsp;
                        <a class="btn btn-primary " href="querstion_add.html" >问卷添加</a>
                        <label>问卷类型筛选</label>
                        <select id="qnType" oninput="changeQnType(this.value)">
                            <option value="">全部</option>
                            <option value="1">试用众测问卷</option>
                            <option value="2">有奖调查问卷</option>
                        </select>
                    </div>

                    <div class="ibox-content">
                        <table class="table table-stripped toggle-arrow-tiny" data-page-size="8">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>标题</th>
                                    <th>问卷类型</th>
                                    <th>添加时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody id="thislist">
                            </tbody>
                            <tbody>
                                <tr>
                                    <td colspan="8">
                                      <div id="pager"></div>         
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" onclick="location.reload();" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">问卷详情</h4>
                </div>
                <div class="modal-body" >
                    <div class="modal-header" id="quesDiv">

                    </div>
                    <table class="table-mail"  id="opTables" >
                    </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" onclick="location.reload();" data-dismiss="modal">关闭</button>
                    <!--<button type="button" class="btn btn-primary">提交更改</button>-->
                </div>
            </div><!-- /.modal-content -->
        </div>
    </div><!-- /.modal -->





</body>
</html>
